home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / dom / nsIDOMPopupBlockedEvent.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  6KB  |  136 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIDOMPopupBlockedEvent.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIDOMPopupBlockedEvent_h__
  6. #define __gen_nsIDOMPopupBlockedEvent_h__
  7.  
  8.  
  9. #ifndef __gen_nsIDOMEvent_h__
  10. #include "nsIDOMEvent.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17. class nsIURI; /* forward declaration */
  18.  
  19.  
  20. /* starting interface:    nsIDOMPopupBlockedEvent */
  21. #define NS_IDOMPOPUPBLOCKEDEVENT_IID_STR "9e201104-78e9-4cb3-aff5-7f0a9cf446c0"
  22.  
  23. #define NS_IDOMPOPUPBLOCKEDEVENT_IID \
  24.   {0x9e201104, 0x78e9, 0x4cb3, \
  25.     { 0xaf, 0xf5, 0x7f, 0x0a, 0x9c, 0xf4, 0x46, 0xc0 }}
  26.  
  27. /**
  28.  * The nsIDOMPopupBlockedEvent interface is the datatype for events
  29.  * posted when a popup window is blocked.
  30.  */
  31. class NS_NO_VTABLE nsIDOMPopupBlockedEvent : public nsIDOMEvent {
  32.  public: 
  33.  
  34.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IDOMPOPUPBLOCKEDEVENT_IID)
  35.  
  36.   /* readonly attribute nsIURI requestingWindowURI; */
  37.   NS_IMETHOD GetRequestingWindowURI(nsIURI * *aRequestingWindowURI) = 0;
  38.  
  39.   /* readonly attribute nsIURI popupWindowURI; */
  40.   NS_IMETHOD GetPopupWindowURI(nsIURI * *aPopupWindowURI) = 0;
  41.  
  42.   /**
  43.    * The string of features passed to the window.open() call
  44.    * (as the third argument)
  45.    */
  46.   /* readonly attribute DOMString popupWindowFeatures; */
  47.   NS_IMETHOD GetPopupWindowFeatures(nsAString & aPopupWindowFeatures) = 0;
  48.  
  49.   /* void initPopupBlockedEvent (in DOMString typeArg, in boolean canBubbleArg, in boolean cancelableArg, in nsIURI requestingWindowURI, in nsIURI popupWindowURI, in DOMString popupWindowFeatures); */
  50.   NS_IMETHOD InitPopupBlockedEvent(const nsAString & typeArg, PRBool canBubbleArg, PRBool cancelableArg, nsIURI *requestingWindowURI, nsIURI *popupWindowURI, const nsAString & popupWindowFeatures) = 0;
  51.  
  52. };
  53.  
  54. /* Use this macro when declaring classes that implement this interface. */
  55. #define NS_DECL_NSIDOMPOPUPBLOCKEDEVENT \
  56.   NS_IMETHOD GetRequestingWindowURI(nsIURI * *aRequestingWindowURI); \
  57.   NS_IMETHOD GetPopupWindowURI(nsIURI * *aPopupWindowURI); \
  58.   NS_IMETHOD GetPopupWindowFeatures(nsAString & aPopupWindowFeatures); \
  59.   NS_IMETHOD InitPopupBlockedEvent(const nsAString & typeArg, PRBool canBubbleArg, PRBool cancelableArg, nsIURI *requestingWindowURI, nsIURI *popupWindowURI, const nsAString & popupWindowFeatures); 
  60.  
  61. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  62. #define NS_FORWARD_NSIDOMPOPUPBLOCKEDEVENT(_to) \
  63.   NS_IMETHOD GetRequestingWindowURI(nsIURI * *aRequestingWindowURI) { return _to GetRequestingWindowURI(aRequestingWindowURI); } \
  64.   NS_IMETHOD GetPopupWindowURI(nsIURI * *aPopupWindowURI) { return _to GetPopupWindowURI(aPopupWindowURI); } \
  65.   NS_IMETHOD GetPopupWindowFeatures(nsAString & aPopupWindowFeatures) { return _to GetPopupWindowFeatures(aPopupWindowFeatures); } \
  66.   NS_IMETHOD InitPopupBlockedEvent(const nsAString & typeArg, PRBool canBubbleArg, PRBool cancelableArg, nsIURI *requestingWindowURI, nsIURI *popupWindowURI, const nsAString & popupWindowFeatures) { return _to InitPopupBlockedEvent(typeArg, canBubbleArg, cancelableArg, requestingWindowURI, popupWindowURI, popupWindowFeatures); } 
  67.  
  68. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  69. #define NS_FORWARD_SAFE_NSIDOMPOPUPBLOCKEDEVENT(_to) \
  70.   NS_IMETHOD GetRequestingWindowURI(nsIURI * *aRequestingWindowURI) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRequestingWindowURI(aRequestingWindowURI); } \
  71.   NS_IMETHOD GetPopupWindowURI(nsIURI * *aPopupWindowURI) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPopupWindowURI(aPopupWindowURI); } \
  72.   NS_IMETHOD GetPopupWindowFeatures(nsAString & aPopupWindowFeatures) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetPopupWindowFeatures(aPopupWindowFeatures); } \
  73.   NS_IMETHOD InitPopupBlockedEvent(const nsAString & typeArg, PRBool canBubbleArg, PRBool cancelableArg, nsIURI *requestingWindowURI, nsIURI *popupWindowURI, const nsAString & popupWindowFeatures) { return !_to ? NS_ERROR_NULL_POINTER : _to->InitPopupBlockedEvent(typeArg, canBubbleArg, cancelableArg, requestingWindowURI, popupWindowURI, popupWindowFeatures); } 
  74.  
  75. #if 0
  76. /* Use the code below as a template for the implementation class for this interface. */
  77.  
  78. /* Header file */
  79. class nsDOMPopupBlockedEvent : public nsIDOMPopupBlockedEvent
  80. {
  81. public:
  82.   NS_DECL_ISUPPORTS
  83.   NS_DECL_NSIDOMPOPUPBLOCKEDEVENT
  84.  
  85.   nsDOMPopupBlockedEvent();
  86.  
  87. private:
  88.   ~nsDOMPopupBlockedEvent();
  89.  
  90. protected:
  91.   /* additional members */
  92. };
  93.  
  94. /* Implementation file */
  95. NS_IMPL_ISUPPORTS1(nsDOMPopupBlockedEvent, nsIDOMPopupBlockedEvent)
  96.  
  97. nsDOMPopupBlockedEvent::nsDOMPopupBlockedEvent()
  98. {
  99.   /* member initializers and constructor code */
  100. }
  101.  
  102. nsDOMPopupBlockedEvent::~nsDOMPopupBlockedEvent()
  103. {
  104.   /* destructor code */
  105. }
  106.  
  107. /* readonly attribute nsIURI requestingWindowURI; */
  108. NS_IMETHODIMP nsDOMPopupBlockedEvent::GetRequestingWindowURI(nsIURI * *aRequestingWindowURI)
  109. {
  110.     return NS_ERROR_NOT_IMPLEMENTED;
  111. }
  112.  
  113. /* readonly attribute nsIURI popupWindowURI; */
  114. NS_IMETHODIMP nsDOMPopupBlockedEvent::GetPopupWindowURI(nsIURI * *aPopupWindowURI)
  115. {
  116.     return NS_ERROR_NOT_IMPLEMENTED;
  117. }
  118.  
  119. /* readonly attribute DOMString popupWindowFeatures; */
  120. NS_IMETHODIMP nsDOMPopupBlockedEvent::GetPopupWindowFeatures(nsAString & aPopupWindowFeatures)
  121. {
  122.     return NS_ERROR_NOT_IMPLEMENTED;
  123. }
  124.  
  125. /* void initPopupBlockedEvent (in DOMString typeArg, in boolean canBubbleArg, in boolean cancelableArg, in nsIURI requestingWindowURI, in nsIURI popupWindowURI, in DOMString popupWindowFeatures); */
  126. NS_IMETHODIMP nsDOMPopupBlockedEvent::InitPopupBlockedEvent(const nsAString & typeArg, PRBool canBubbleArg, PRBool cancelableArg, nsIURI *requestingWindowURI, nsIURI *popupWindowURI, const nsAString & popupWindowFeatures)
  127. {
  128.     return NS_ERROR_NOT_IMPLEMENTED;
  129. }
  130.  
  131. /* End of implementation class template. */
  132. #endif
  133.  
  134.  
  135. #endif /* __gen_nsIDOMPopupBlockedEvent_h__ */
  136.